package com.lwj.service.administration;

import com.lwj.dto.administration.UserDto;
import com.lwj.dto.administration.UserListDto;
import com.lwj.entity.RestEntity;
import com.lwj.model.administration.User;
import com.lwj.vo.PageBean;
import com.lwj.vo.administration.DepartmentVo;
import com.lwj.vo.administration.UserVo;
import com.lwj.vo.configuration.RoleInfo;
import com.lwj.vo.configuration.UserInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService {
    public UserVo getUserById(UserDto dto);
    public void insertUser(UserDto dto);
    public UserInfo login(String empId, String password);
    PageBean<UserVo> selectUserByDepartmentId(UserListDto dto);

    String save(UserDto dto);

    int changeState(String empId,Integer enableState);

    int delete(String empId);

    List<RoleInfo>  selectUserRoles();

    void out();
}
